<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml" th:fragment="part">
<head>
    <meta charset="UTF-8">


    <link rel="stylesheet" href="/css/mypost/mypost.css">
<!--    <script src="../static/js/Mypost/mypost.js"></script>-->
    <script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>
    <script type="text/javascript" src="../js/mypost/fenye.js"></script>

    <title>四个模块</title>

    <script>
        function f() {
            var a=document.getElementById("ss").value;
        }
    </script>
</head>
<body>

<form th:action="@{mokuai}" method="GET">
    <input type="text"    laceholder="根据标题或主题查询"
           id="ss" name="ptitle" value=""
           style="border: 1px solid #E6E6E6;;height:28px;width:120px;">

    <input  type="submit" value="搜索" onclick="f()" style="border: 1px solid ;height:28px;width:35px;background-color: #CE090E">

</form>


<table id="adminTbody" class="table">

    <tr class="table_header">
        <th>标题</th>
        <th>类型</th>
        <th>作者</th>
        <th>发表时间</th>
        <th>点赞</th>
        <th>收藏</th>

    </tr>
    <tr  th:each="mypost,mypostStat : ${myposts}" onmouseover="this.style.backgroundColor='lightslategray';" onmouseout="this.style.backgroundColor='#d4e3e5';">
        <td><a th:href="@{'/toMyPost?page=html/editor/lookPost_f&pid='+${mypost.pid}}"  th:text="${mypost.ptitle}"></a></td>
        <td th:text="${mypost.ptype}"></td>
        <td th:text="${mypost.username}"></td>
        <td th:text="${mypost.ptime}"></td>
        <td th:text="${mypost.giveup}"></td>
        <td th:text="${mypost.collect}"></td>

    </tr>
</table>



<div class="layui-card-body ">
    <div class="page">
        <div>
            <a class="num" href="###" id="firstPage">首页</a>
            <a class="prev" href="###" id="prePage">&lt;&lt;</a>
            <span class="current" id="currentPage"></span>
            <a class="next" href="###"id="nextPage">&gt;&gt;</a>
            <a class="num" href="###" id="lastPage">尾页</a>
            <a class="num" href="###" id="totalpage"></a>
            <a class="num"> <select  id="jumpWhere"> </select></a>
            <a href="###" id="jumpPage" onclick="jumpPage()">跳转</a>
            <a class="num" id="countsum"></a>
        </div>
    </div>
</div>


</body>
</html>

